package com.example.demo.service;

import com.example.demo.mapper.ParamsMapper;
import com.example.demo.model.Result;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@AllArgsConstructor
public class ParamsService {

    private ParamsMapper paramsMapper;

    public Result getParamsByproductId(Integer productId) {
        return Result.buildSuccess(paramsMapper.getParamsByProductId(productId));
    }
}
